package com.fresh.client;

import com.fresh.common.ResponseResult;
import com.fresh.entity.FreshGoods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("system-goods")
public interface GoodsFeignClient {

    @GetMapping("/goods/all")
    ResponseResult all();

    @PostMapping("/goods/importExcel")
    ResponseResult add(@RequestBody FreshGoods freshGoods);
}
